{template header}
{php doAction('tseditor','load')}
<div class="midder">
<div class="mc">

<div class="bbox">

<h1>写文章</h1>
<div class="bc">
<form method="POST" action="{SITE_URL}index.php?app=article&ac=add&ts=do"  enctype="multipart/form-data">
<table>

{if $arrCate}
<tr><th>选择分类：</th><td>
<select name="cateid">
{loop $arrCate $key $item}
<option {if $item[cateid]==$cateid}selected="select"{/if} value="{$item[cateid]}">{$item[catename]}</option>
{/loop}
</select>
</td></tr>
{/if}

<tr><th>标题：</th><td><input style="padding:3px 0;width:600px;" name="title" /></td></tr>
<tr><th valign="top">内容：</th><td><textarea class="editors" style="width:600px;" id="tseditor" name="content"></textarea></td></tr>
<tr><th>标签：</th><td><input style="padding:3px 0;width:300px;" name="tag" /> (多个标签请用英文,号分开)</td></tr>
<tr><th>封面图片：</th><td><input  type="file" name="picfile" /> (仅支持jpg,gif,png)</td></tr>
<tr><th></th><td>
<input type="hidden" name="token" value="{$_SESSION['token']}" />
<button class="btn btn-success" type="submit">发布文章</button></td></tr>
</table>
</form>

</div>
</div>
</div>
</div>
{template footer}